#pragma once
#include "DXUT.h"
#include "stdio.h"
#include <string>
#include "../DataStructsDef.h"

#define  LENGTHANGLEMAPPINGFILE MAX_PATH
#define  LENGTHGONIODATAFILE MAX_PATH*8

class CGonioFilesIO
{
public:
	CGonioFilesIO(void);
	virtual ~CGonioFilesIO(void);
	
	bool ReadAngleMappingFile(char* strFileName);
	bool ReadOrgGonioMeasuredData(char* strFileName, bool bCleanArray=true, float fRotateAngle = 0);

	bool ComputeNDFInverse(ID3D11Device* pd3dDevice, TCHAR* strImgName, char* str1DPlotFile, unsigned int iWidth, unsigned int iHeight);

public:
	CGrowableArray<AngleMappingData> m_AngleMappingArray;
	CGrowableArray<GonioMeasuredData> m_OrgGonioDataArray;

		
};

